package com.glsc.ngateway.common.api.filetransfer.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;
import com.glsc.ngateway.common.api.common.enums.DictConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CommonFileDto implements Serializable {
    private static final long serialVersionUID = -3782105142135984717L;


    @ApiModelProperty(value = "文件id")
    private String fileId;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件存储路径")
    private String filePath;

    @ApiModelProperty(value = "文件字节数")
    private Long fileSize;

    @ApiModelProperty(value = "文件说明信息")
    private String fileDesc;

    @ApiModelProperty(value = "文件md5校验码")
    private String fileMd5;

    @ApiModelProperty(value = "删除状态，字典 YesNo:（N=未删除(默认) Y=已删除)")
    protected String deleted= DictConstant.NO;

    @ApiModelProperty(value = "文件状态，字典 YesNo:（Y=启用(默认) N=未启用)")
    protected String fileStatus= DictConstant.YES;

    @ApiModelProperty(value = "数据来源")
    protected String fileSource;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //todo  是否修改为oa账号
    @ApiModelProperty(value = "创建人oa账号")
    protected String createOperator;

    @ApiModelProperty(value = "创建人姓名")
    protected String createOperatorName;



}
